|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnegotiator.boaframework.OfferingStrategy
negotiator.boaframework.offeringstrategy.other.ANAC2013BOAExample_Offering
public class ANAC2013BOAExample_Offering
Example agent that offers a bid with a utility above the target "breakoff". If the utility received at the end of a match is higher than the breakoff, then the breakoff is set to this utility for the next session on this preference profile. If there is no accept, then the target is decreased with a predefined constant.
| Field Summary |
|---|
| Fields inherited from class negotiator.boaframework.OfferingStrategy |
|---|
endNegotiation, helper, negotiationSession, nextBid, omStrategy, opponentModel |
| Constructor Summary | |
|---|---|
ANAC2013BOAExample_Offering()
Empty constructor called by BOA framework. |
|
| Method Summary | |
|---|---|
BidDetails |
determineNextBid()
Offer a random bid with a utility higher than the target breakoff. |
BidDetails |
determineOpeningBid()
Determines the first bid to be offered by the agent |
void |
endSession(NegotiationResult result)
Method called at the end of a negotiation. |
void |
init(NegotiationSession negotiationSession,
OpponentModel opponentModel,
OMStrategy omStrategy,
java.util.HashMap<java.lang.String,java.lang.Double> parameters)
Initializes the offering strategy. |
| Methods inherited from class negotiator.boaframework.OfferingStrategy |
|---|
getHelper, getNextBid, isEndNegotiation, loadData, setNextBid, storeData |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ANAC2013BOAExample_Offering()
| Method Detail |
|---|
public void init(NegotiationSession negotiationSession,
OpponentModel opponentModel,
OMStrategy omStrategy,
java.util.HashMap<java.lang.String,java.lang.Double> parameters)
throws java.lang.Exception
OfferingStrategy
init in class OfferingStrategynegotiationSession - state of the negotiation.opponentModel - opponent model which may be used.omStrategy - opponent model strategy which may be used.parameters - optional parameters for the offering strategy.
java.lang.Exception - if the offering strategy fails to initialize.public BidDetails determineOpeningBid()
OfferingStrategy
determineOpeningBid in class OfferingStrategypublic BidDetails determineNextBid()
determineNextBid in class OfferingStrategypublic void endSession(NegotiationResult result)
endSession in class OfferingStrategyresult - of the negotiation.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||